package de.tabuma.soap.entity.xsd;

import java.util.*;
import java.io.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;

/**
 * This class represents an element of an wsdl document called &quot;complextype&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="complextype",mappingType=SoapClassMapping.MappingType.XSD))
public class XsComplexType implements Serializable {

    public XsComplexType() {
        
        this.xsAnnotationId = new Long(0);
        this.xsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute = new ArrayList<Long>();
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id1;
    public Long getId1() {
        return id1;
    }

    @Persistent
    @SoapAttribute
    protected String name;
    public String getName() {
        return name;
    }
    public void setName(String value) {
        this.name = value;
    }


    @Persistent
    @SoapAttribute
    protected String id;
    public String getId() {
        return id;
    }
    public void setId(String value) {
        this.id = value;
    }

    @Persistent
    @SoapAttribute(fieldName="abstract")
    protected String _abstract;
    public String getAbstract() {
        return _abstract;
    }
    public void setAbstract(String value) {
        this._abstract = value;
    }

    @Persistent
    @SoapAttribute(fieldName="final")
    protected String _final;
    public String getFinal() {
        return _final;
    }
    public void setFinal(String value) {
        this._final = value;
    }

    @Persistent
    @SoapAttribute
    protected String block;
    public String getBlock() {
        return block;
    }
    public void setBlock(String value) {
        this.block = value;
    }

    @Persistent
    @SoapAttribute
    protected String mixed;
    public String getMixed() {
        if (mixed == null) {
            return "false";
        } else {
            return mixed;
        }
    }
    public void setMixed(String value) {
        this.mixed = value;
    }


    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=XsAnnotation.class))
    protected Long xsAnnotationId;
    public Long getXsAnnotationId() {
        return xsAnnotationId;
    }
    public void setXsAnnotationId(Long xsAnnotationId) {
        this.xsAnnotationId = xsAnnotationId;
    }

    @Persistent
    @SoapFieldDefinition(
        {
            @SoapFieldClass(classDefinition=XsSimpleContent.class),
            @SoapFieldClass(classDefinition=XsComplexContent.class),
            @SoapFieldClass(classDefinition=XsAll.class),
            @SoapFieldClass(classDefinition=XsChoice.class),
            @SoapFieldClass(classDefinition=XsSequence.class),
            @SoapFieldClass(classDefinition=XsGroup.class),
            @SoapFieldClass(classDefinition=XsAttribute.class),
            @SoapFieldClass(classDefinition=XsAttributeGroup.class),
            @SoapFieldClass(classDefinition=XsAnyAttribute.class)
        }
    )
    protected List<Long> xsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute;
    public List<Long> getXsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute() {
        if(this.xsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute==null) {
            this.xsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute = new ArrayList<Long>();
        }
        return this.xsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute;
    }
    public void setXsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute(List<Long> xsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute) {
        this.xsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute = xsSimpleContentOrXsComplexContentOrXsAllOrXsChoiceOrXsSequenceOrXsGroupOrXsAttributeOrXsAttributeGroupOrXsAnyAttribute;
    }


}
